﻿/**
* ...
* @author Default
*/

package model;
import hails.HailsDbRecord;

class Order extends HailsDbRecord{
	public var info:String;
	public var user_id:Int;
	
	// this is like "belongs_to :user" :
	public function user() : User {
		return findOwnerRecord(User);
	}
	
//	public static function findAll() : List < User > {
//		return HailsDbRecord.findAll(User);
//	}
	public static function findAll() : List < Order > {
		return HailsDbRecord.findAll(Order);
	}
	
}